<div id="sidebar">
{% for widget in widgets %}
	{% ifequal widget.0 "categories" %}
	<div id="mod_artclg" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
			    <tr>
		            <td class="modtl" width="7">&nbsp;</td>
			        <td class="modtc" nowrap><div class="modhead"><span class="modtit">文章分类</span></div></td>
			        <td class="modtc" nowrap align="right">{% if 6|power %}<div class="modopt"><a href="/admin/categories/"  class="modact"><img src="{{ theme.dir }}/images/ico_postnew.gif" border="0" align="absmiddle">编辑</a></div>{% endif %}</td>
			        <td class="modtr" width="7">&nbsp;</td>
			    </tr>
		</table>
		<div id="m_artclg" class="modbox">
			{% for cat in widget.1 %}
				<div class="item">
				  <div align="left"><a href="/category/{{ cat.category_url }}/" title="查看该分类中所有文章">{{cat.category_name}}</a></div>
				</div>
				<div class="line">&nbsp;</div>
			{% endfor %}
		</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
	</div>
	{% endifequal %}
	{% ifequal widget.0 "archives" %}
	<div id="mod_artclg" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
			    <tr>
		            <td class="modtl" width="7">&nbsp;</td>
			        <td class="modtc" nowrap><div class="modhead"><span class="modtit">日期</span></div></td>
			        <td class="modtc" nowrap align="right"></td>
			        <td class="modtr" width="7">&nbsp;</td>
			    </tr>
		</table>
		<div id="m_artclg" class="modbox">
			{% for arc in widget.1 %}
				<div class="item">
				  <div align="left"><a href="/archive/{{ arc.yearmonth }}/" title="查看该日期段中所有文章">{{ arc.yearmonth }}</a>({{arc.entrycount}})</div>
				</div>
				<div class="line">&nbsp;</div>
			{% endfor %}
		</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
	</div>
	{% endifequal %}
	{% ifequal widget.0 "pages" %}
	<div id="mod_artclg" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
			    <tr>
		            <td class="modtl" width="7">&nbsp;</td>
			        <td class="modtc" nowrap><div class="modhead"><span class="modtit">页面</span></div></td>
			        <td class="modtc" nowrap align="right">{% if 6|power %}<div class="modopt"><a href="/admin/pages/"  class="modact"><img src="{{ theme.dir }}/images/ico_postnew.gif" border="0" align="absmiddle">编辑</a></div>{% endif %}</td>
			        <td class="modtr" width="7">&nbsp;</td>
			    </tr>
		</table>
		<div id="m_artclg" class="modbox">
			{% for page in widget.1 %}
				<div class="item">
				  <div align="left"><a href="/page/{{page.permalink}}.html" title="查看该页面文章">{{page.title}}</a></div>
				</div>
				<div class="line">&nbsp;</div>
			{% endfor %}
		</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
	</div>
	{% endifequal %}
	{% ifequal widget.0 "tags" %}
	<div id="mod_artclg" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
			    <tr>
		            <td class="modtl" width="7">&nbsp;</td>
			        <td class="modtc" nowrap><div class="modhead"><span class="modtit">标签</span></div></td>
			        <td class="modtc" nowrap align="right"></td>
			        <td class="modtr" width="7">&nbsp;</td>
			    </tr>
		</table>
		<div id="m_artclg" class="modbox">
			{% for tag in widget.1|limitnum:5 %}
				<div class="item">
				  <div align="left"><a href="/tag/{{tag.tag}}/" title="查看该页面文章">{{tag.tag}}</a></div>
				</div>
				<div class="line">&nbsp;</div>
			{% endfor %}
		</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
	</div>
	{% endifequal %}
	{% ifequal widget.0 "links" %}
	<div id="mod_artclg" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
			    <tr>
		            <td class="modtl" width="7">&nbsp;</td>
			        <td class="modtc" nowrap><div class="modhead"><span class="modtit">链接</span></div></td>
			        <td class="modtc" nowrap align="right">{% if 6|power %}<div class="modopt"><a href="/admin/sidebar/links/"  class="modact"><img src="{{ theme.dir }}/images/ico_postnew.gif" border="0" align="absmiddle">编辑</a></div>{% endif %}</td>
			        <td class="modtr" width="7">&nbsp;</td>
			    </tr>
		</table>
		<div id="m_artclg" class="modbox">
			{% for link in widget.1 %}
				<div class="item">
				  <div align="left"><a href="{{link.link}}" title="查看该页面文章">{{link.name}}</a></div>
				</div>
				<div class="line">&nbsp;</div>
			{% endfor %}
		</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
	</div>
	{% endifequal %}
	{% ifequal widget.0 "recentcomments" %}
	<div id="mod_artclg" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
			    <tr>
		            <td class="modtl" width="7">&nbsp;</td>
			        <td class="modtc" nowrap><div class="modhead"><span class="modtit">最新评论</span></div></td>
			        <td class="modtc" nowrap align="right">{% if 6|power %}<div class="modopt"><a href="/admin/comments/"  class="modact"><img src="{{ theme.dir }}/images/ico_postnew.gif" border="0" align="absmiddle">编辑</a></div>{% endif %}</td>
			        <td class="modtr" width="7">&nbsp;</td>
			    </tr>
		</table>
		<div id="m_artclg" class="modbox">
			{% for comment in widget.1|limitnum:5 %}
				<div class="item">
				  <div align="left">{{comment.author}}:<a href="/post/{{comment.permalink}}.html" title="查看该页面文章">{{comment.text}}</a></div>
				</div>
				<div class="line">&nbsp;</div>
			{% endfor %}
		</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
	</div>
	{% endifequal %}
	{% ifequal widget.0 "feed" %}
	<div id="mod_artclg" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
			    <tr>
		            <td class="modtl" width="7">&nbsp;</td>
			        <td class="modtc" nowrap><div class="modhead"><span class="modtit">FEED</span></div></td>
			        <td class="modtc" nowrap align="right"></td>
			        <td class="modtr" width="7">&nbsp;</td>
			    </tr>
		</table>
		<div id="m_artclg" class="modbox">
			{% for feed in widget.1 %}
				<div class="item">
				  <div align="left"><a href="{{ feed.link }}" title="查看该页面文章"><img border="0" src="{{ feed.link_autor }}" alt="{{ feed.link_alt }}" vspace="2" style="margin-bottom:3px" /></a></div>
				</div>
				<div class="line">&nbsp;</div>
			{% endfor %}
		</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
	</div>
	{% endifequal %}
	{% ifequal widget.0 "widget" %}
	<div id="mod_artclg" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
			    <tr>
		            <td class="modtl" width="7">&nbsp;</td>
			        <td class="modtc" nowrap><div class="modhead"><span class="modtit">{{ widget.1.title }}</span></div></td>
			        <td class="modtc" nowrap align="right">{% if 6|power %}<div class="modopt"><a href="/admin/sidebar/widgets/"  class="modact"><img src="{{ theme.dir }}/images/ico_postnew.gif" border="0" align="absmiddle">编辑</a></div>{% endif %}</td>
			        <td class="modtr" width="7">&nbsp;</td>
			    </tr>
		</table>
		<div id="m_artclg" class="modbox">
			{{widget.1.text}}
		</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8"><tr><td class="modbl" width="7">&nbsp;</td><td class="modbc">&nbsp;</td><td class="modbr" width="7">&nbsp;</td></tr></table>
	</div>
	{% endifequal %}
{% endfor %}
</div>